home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / C and C++ / Gnuplot 3.5 for Macintosh / SOURCES 3.5 / Mac.h < prev    next >
Text File  |  1993-11-12  |  2KB  |  63 lines

  1. /* GNUPLOT -- MacGraphics.trm */
  2. /*
  3.  * Copyright (C) 1990   
  4.  *
  5.  * Permission to use, copy, and distribute this software and its
  6.  * documentation for any purpose with or without fee is hereby granted, 
  7.  * provided that the above copyright notice appear in all copies and 
  8.  * that both that copyright notice and this permission notice appear 
  9.  * in supporting documentation.
  10.  *
  11.  * Permission to modify the software is granted, but not the right to
  12.  * distribute the modified code.  Modifications are to be distributed 
  13.  * as patches to released version.
  14.  *  
  15.  * This software  is provided "as is" without express or implied warranty.
  16.  * 
  17.  * This file is included by ../term.c.
  18.  *
  19.  * This terminal driver supports:
  20.  *  Unix plot(5) graphics language
  21.  *
  22.  * AUTHORS
  23.  *  Colin Kelley, Thomas Williams, Russell Lang
  24.  * 
  25.  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  26.  * 
  27.  */
  28.  
  29. /*
  30. Unixplot library writes to stdout.  A fix was put in place by
  31. ..!arizona!naucse!jdc to let set term and set output redirect
  32. stdout.  All other terminals write to outfile.
  33. */
  34.  
  35. /* console window font width :6, font height 11
  36.  window size  283 x 488 */
  37.  
  38. #define MAC_XMAX 448
  39. #define MAC_YMAX 271
  40. #define MAC_XOFFSET (468-MAC_XMAX)
  41.  
  42. #define MAC_XLAST (MAC_XMAX - 1)
  43. #define MAC_YLAST (MAC_YMAX - 1)
  44.  
  45. #define MAC_VCHAR 11     /* monaco 9 point plain style */
  46. #define MAC_HCHAR 6     
  47. #define MAC_VTIC (MAC_YMAX/80)
  48. #define MAC_HTIC (MAC_XMAX/80)
  49. #define MAC_WINDOW_TITLE "\pMac Graphic Window"
  50.  
  51. // prototype of exported functions
  52. /* Not needed, I think P. Laval
  53. extern MAC_init();
  54. extern MAC_graphics();
  55. extern MAC_text();
  56. extern MAC_linetype(int linetype);
  57. extern MAC_move(unsigned int x,unsigned int y);
  58. extern MAC_vector(unsigned int x,unsigned int y);
  59. extern MAC_put_text(unsigned int x,unsigned int y,char *str);
  60. extern MAC_reset();
  61. */
  62. //
  63.